import request from '@/helpers/request';

export const reqGetMessage = (params) => {
  //车辆信息请求
  return request('/api/vehicle/select', {
    method: 'GET',
    params: params,
  });
};
export const reqUpdateLockState = (params) => {
  return request('/api/vehicle/update_lockedState', {
    //改变车辆锁机状态
    method: 'PUT',
    params,
  });
};
export const reqUpdateRunningState = (params) => {
  return request('/api/vehicle/update_runningState', {
    //改变汽车运行状态
    method: 'PUT',
    params,
  });
};
export const reqGetCategoryList = (params) => {
  return request('/api/category/select', {
    method: 'GET',
    params,
  })
}